package com.oneinlet

import org.junit.Test

/**
 * Created by WangZiHe on 2018/5/19
 * QQ/WeChat:648830605
 * QQ-Group:368512253
 * Blog:www.520code.net
 * Github:https://github.com/yancheng199287
 */

class TestYCFile {

    @Test
    fun testCreateTemplateFile() {
        val file = YCFile.createTemplateFile("E:\\dabaicai", "user_", ".txt")
        println("该文件路径为：${file.path}")
    }

    @Test
    fun testDeleteAll() {
        YCFile.deleteAll("E:\\qrcode")
    }


    @Test
    fun testMoreZipFile() {
        YCFile.compressZIP("G:\\迅雷下载", "G:\\a压缩文件sassa.zip")
    }

    @Test
    fun testDecompressZIP() {
        YCFile.decompressZIP("G:\\a压缩文件sassa.zip", "G:\\迅雷下载\\bbbbbb")
    }

    @Test
    fun testGetFileSuffix() {
        val suffix = YCFile.getFileSuffix("blueboy.jpg")
        println(suffix)
    }

    @Test
    fun testCreateFile() {
        val suffix = YCFile.createFile("/home/yancheng/Desktop/test")
        println(suffix)
    }


}